package com.czkt.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */

public class CstLost implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 编号
     */
    private Long lstId;

    /**
     * 客户编号
     */
    private String lstCustNo;

    /**
     * 客户姓名
     */
    private String lstCustName;

    /**
     * 客户经理编号
     */
    private Long lstCustManagerId;

    /**
     * 客户经理姓名
     */
    private String lstCustManagerName;

    /**
     * 上次下单时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-hh")
    private Date lstLastOrderDate;


    /**
     * 确认流失时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-hh")
    private Date lstLostDate;

    /**
     * 暂缓措施
     */
    private String lstDelay;

    /**
     * 流失原因
     */
    private String lstReason;

    /**
     * 状态
     */
    private String lstStatus;


    public CstLost() {
    }

    public CstLost(Long lstId, String lstCustNo, String lstCustName, Long lstCustManagerId, String lstCustManagerName, Date lstLastOrderDate, Date lstLostDate, String lstDelay, String lstReason, String lstStatus) {
        this.lstId = lstId;
        this.lstCustNo = lstCustNo;
        this.lstCustName = lstCustName;
        this.lstCustManagerId = lstCustManagerId;
        this.lstCustManagerName = lstCustManagerName;
        this.lstLastOrderDate = lstLastOrderDate;
        this.lstLostDate = lstLostDate;
        this.lstDelay = lstDelay;
        this.lstReason = lstReason;
        this.lstStatus = lstStatus;
    }

    /**
     * 获取
     * @return lstId
     */
    public Long getLstId() {
        return lstId;
    }

    /**
     * 设置
     * @param lstId
     */
    public void setLstId(Long lstId) {
        this.lstId = lstId;
    }

    /**
     * 获取
     * @return lstCustNo
     */
    public String getLstCustNo() {
        return lstCustNo;
    }

    /**
     * 设置
     * @param lstCustNo
     */
    public void setLstCustNo(String lstCustNo) {
        this.lstCustNo = lstCustNo;
    }

    /**
     * 获取
     * @return lstCustName
     */
    public String getLstCustName() {
        return lstCustName;
    }

    /**
     * 设置
     * @param lstCustName
     */
    public void setLstCustName(String lstCustName) {
        this.lstCustName = lstCustName;
    }

    /**
     * 获取
     * @return lstCustManagerId
     */
    public Long getLstCustManagerId() {
        return lstCustManagerId;
    }

    /**
     * 设置
     * @param lstCustManagerId
     */
    public void setLstCustManagerId(Long lstCustManagerId) {
        this.lstCustManagerId = lstCustManagerId;
    }

    /**
     * 获取
     * @return lstCustManagerName
     */
    public String getLstCustManagerName() {
        return lstCustManagerName;
    }

    /**
     * 设置
     * @param lstCustManagerName
     */
    public void setLstCustManagerName(String lstCustManagerName) {
        this.lstCustManagerName = lstCustManagerName;
    }

    /**
     * 获取
     * @return lstLastOrderDate
     */
    public String getLstLastOrderDate() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(lstLastOrderDate);
    }
    /**
     * 设置
     * @param lstLastOrderDate
     */
    public void setLstLastOrderDate(Date lstLastOrderDate) {
        this.lstLastOrderDate = lstLastOrderDate;
    }

    /**
     * 获取
     * @return lstLostDate
     */
    public String getLstLostDate() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(lstLostDate);
    }

    /**
     * 设置
     * @param lstLostDate
     */
    public void setLstLostDate(Date lstLostDate) {
        this.lstLostDate = lstLostDate;
    }

    /**
     * 获取
     * @return lstDelay
     */
    public String getLstDelay() {
        return lstDelay;
    }

    /**
     * 设置
     * @param lstDelay
     */
    public void setLstDelay(String lstDelay) {
        this.lstDelay = lstDelay;
    }

    /**
     * 获取
     * @return lstReason
     */
    public String getLstReason() {
        return lstReason;
    }

    /**
     * 设置
     * @param lstReason
     */
    public void setLstReason(String lstReason) {
        this.lstReason = lstReason;
    }

    /**
     * 获取
     * @return lstStatus
     */
    public String getLstStatus() {
        return lstStatus;
    }

    /**
     * 设置
     * @param lstStatus
     */
    public void setLstStatus(String lstStatus) {
        this.lstStatus = lstStatus;
    }

    public String toString() {
        return "CstLost{lstId = " + lstId + ", lstCustNo = " + lstCustNo + ", lstCustName = " + lstCustName + ", lstCustManagerId = " + lstCustManagerId + ", lstCustManagerName = " + lstCustManagerName + ", lstLastOrderDate = " + lstLastOrderDate + ", lstLostDate = " + lstLostDate + ", lstDelay = " + lstDelay + ", lstReason = " + lstReason + ", lstStatus = " + lstStatus + "}";
    }
}
